@import '~@txdfe/at-theme/teambition/scss/index.scss';
.personal-access-token {
  height: 100%;
  &-content {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  &-loading {
    height: 500px;
    text-align: center;
    width: 620px;
    padding: 0 20px;
  }

  &-header {
    padding: 0 20px 20px;
    &-title {
      width: 144px;
      height: 56px;
      text-align: left;
      line-height: 56px;
      font-size: 16px;
      color: $gray-08;
      font-weight: 500;
    }

    &-desc {
      text-align: left;
      line-height: 20px;
      font-size: 14px;
      color: $gray-06;
    }
  }

  &-bottom {
    flex: 1;
    max-height: calc(100% - 96px);
    & > div {
      height: 100%;
    }
  }

  &-list-container {
    padding-bottom: 20px;
  }

  &-list-header {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    &-left {
      font-size: 14px;
      line-height: 20px;
      color: $gray-08;
      font-weight: 500;
    }
  }

  &-list {
    padding: 0 20px;
    &-item {
      border: 1px solid $gray-02;
      border-radius: 4px;
      padding: 16px;
      margin-top: 16px;
      &:hover {
        .item-desc-right {
          display: block;
        }
      }
      .item-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        line-height: 20px;
        &-left {
          display: flex;
          align-items: center;
          .name {
            color: $primary-brand;
            cursor: pointer;
            margin-right: 8px;
            max-width: 200px;
          }
          .create-at {
            color: $gray-06;
          }
        }
        &-right {
          margin-left: 12px;
          color: $gray-06;
        }
      }

      .item-desc {
        margin-top: 4px;
        color: $gray-08;
        font-size: 14px;
        line-height: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        &-left {
          max-width: 380px;
        }
        &-right {
          display: none;
          &.block {
            display: block;
          }
        }
      }

      .item-token {
        margin-top: 4px;
        .content {
          position: relative;
          button {
            position: absolute;
            top: -12px;
            right: 0;
          }
        }
      }
    }
  }

  &-form {
    padding: 0 20px;
    form {
      max-height: calc(100% - 94px);
      overflow: auto;
      margin-right: -20px;
      padding-right: 20px;
    }
    &-title {
      font-size: 14px;
      line-height: 20px;
      color: $gray-08;
      font-weight: 500;
      margin-bottom: 16px;
    }
    &-scope {
      .scope-item {
        &-parent {
          display: flex;
          align-items: center;
        }
        &-child {
          display: flex;
          align-items: center;
          .scope-item-label {
            padding-left: 16px;
          }
        }
        &-label {
          width: 230px;
          padding-right: 20px;
        }
      }
    }
    &-btns {
      border-top: 1px solid $gray-02;
      padding: 10px 0;
      margin-left: -20px;
      padding-left: 20px;
    }
  }
}
